cd /opt/
wget -O master.zip https://github.com/mongodb/mongo-php-driver/archive/master.zip
unzip master.zip
cd mongo-php-driver-master

/usr/local/php5/bin/phpize./configure --with-php-config=/usr/local/php5/bin/php-configmake -j 8
make install
cd /opt
wget http://pecl.php.net/get/memcache-2.2.7.tgz
tar xzf memcache-2.2.7.tgz
cd memcache-2.2.7
/usr/local/php5/bin/phpize./configure --with-php-config=/usr/local/php5/bin/php-configmake -j 8
make install

cd /opt
rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum -y install librabbitmq-devel
wget http://pecl.php.net/get/amqp-1.2.0.tgz
tar xzf amqp-1.2.0.tgz
cd amqp-1.2.0
/usr/local/php5/bin/phpize./configure --with-php-config=/usr/local/php5/bin/php-configmake -j 8
make install

cd /opt
wget -O eaccelerator.tar https://github.com/eaccelerator/eaccelerator/tarball/master 
tar xzf eaccelerator.tar
cd eaccelerator-eaccelerator-42067ac/
/usr/local/php5/bin/phpize./configure --with-php-config=/usr/local/php5/bin/php-configmake -j 8
make install

cd /opt
wget -O phpredis.zip https://github.com/nicolasff/phpredis/archive/master.zip
unzip phpredis.zip
cd phpredis-master
/usr/local/php5/bin/phpize./configure --with-php-config=/usr/local/php5/bin/php-configmake -j 8
make install

cd /opt
wget http://mirrors-au.go-parts.com/mirrors/ImageMagick/ImageMagick-6.8.8-8.tar.gz
tar xzf ImageMagick-6.8.8-8.tar.gz
cd ImageMagick-6.8.8-8
./configure -prefix=/usr/local/ImageMagick
make -j 8
make install

cd /opt
wget http://pecl.php.net/get/imagick-3.1.2.tgz
tar xzf imagick-3.1.2.tgz
cd imagick-3.1.2
/usr/local/php5/bin/phpize./configure --with-php-config=/usr/local/php5/bin/php-config --with-imagick=/usr/local/ImageMagick/make -j 8
make install

